package com.imooc.demo.service.impl;

import com.imooc.demo.dao.ShouCangDao;
import com.imooc.demo.entity.ShouCang;
import com.imooc.demo.entity.Talk;
import com.imooc.demo.service.ShouCangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShouCangServiceImpl implements ShouCangService {

    @Autowired
    ShouCangDao shouCangDao;
    @Override
    public boolean insertShouCang(ShouCang shouCang) {
        return shouCangDao.insertShouCang(shouCang);
    }

    @Override
    public List<ShouCang> getShouCangList(String buyerOpenid) {
        return shouCangDao.getShouCangList(buyerOpenid);
    }

    @Override
    public boolean deleteShouCang(Integer id) {
        return shouCangDao.deleteShouCang(id);
    }

    @Override
    public ShouCang getShouCang(ShouCang shouCang) {
        return shouCangDao.getShouCang(shouCang);
    }

    @Override
    public List<ShouCang> getAllShouCangList() {
        return shouCangDao.getAllShouCangList();
    }
}
